#!/bin/sh 
. /etc/profile
. ~/.bash_profile
python /home/pg/PycharmProjects/fjcmcc-gp/cmccgp_check.py w>cmccgp_check_w.txt
len=`cat cmccgp_check_w.txt|wc -l`
if [ $len -gt 0 ] ; then 
    cat cmccgp_check_w.txt|mail -s "cmccgp_check_warn `date +%F' '%T`" gtlions@fmcc.boss
fi

python /home/pg/PycharmProjects/fjcmcc-gp/cmccgp_check.py l|mail -s "cmccgp_check_log `date +%F' '%T`" gtlions@fmcc.boss
